import numpy as np

b = np.array([2, 4, 6, 8])
print(b.ndim) # 1 数组的秩
print(b.size) # 4 元素个数
print(b.shape) # (4,) 每一维度的元素数量